package com.goldman.aplt.base.type;


import com.goldman.aplt.base.exception.BaseErrorCode;

public enum CmErrorCode implements BaseErrorCode {
//    SUCCESS(0, "Success"),
//    FAILED(1, "System occur exception, please try later."),
//    SYS_ERROR(2, "System occur error, please try later."),
    ARG_ERROR("CM10001", "Mandatory field {0} validation failed!"),
    NO_ACCT_ERROR("CM10002", "Request is wrong, please open account first."),
    OTP_ERROR("CM10003", "OTP verification failed."),
    PING_ERROR("CM10004", "Ping verification failed."),
    CORE_BUSI_ERROR("CM10005", "Core system business error."),
    TRXN_AMT_ERROR("CM10006", "Trxn amount must be greater than 0!"),
    FIELD_NOT_LEGAL("CM10007", "Field {0} formatting is not legal."),
    OVER_RISK_OUTWARD_LIMIT("CM10008", "You transfer more than {0} in the same day, please sign the risk agreement!"),
    OVER_DAILY_OUTWARD_LIMIT("CM10009", "Failed transaction, maximum transfer limit for a single day has been exceeded!"),
    OVER_LEVEL_BAL_LIMIT("CM10010", "Your account level is too low, and the asset balance needs to be below {0} after the transfer."),
    OVER_UNFREEZE_LIMIT("CM10011", "Your over-the-limit transfer opportunity has run out, so please transfer again next week."),
    NOT_ENOUGH_BAL("CM10012", "Insufficient available account balance!"),
    ACCT_LIMIT("CM10013", "Failed transaction, account {0} are not allowed to trade!"),
    ACCT_NOT_EXSIT("CM10014", "Account {0} not exist!"),
    CORE_SYS_ERROR("CM20001", "Core system error."),
    ENCRYPTION_ERROR("CM10015", "encryption error."),
    ACCT_ABNORMAL("CM10016", "The payee's account is abnormal"),
    ARG_NOT_ALL_EMPTY("CM10017", "Args not allow all empty"),
    NULL_ERROR("CM10018", "Mandatory field {0} validation failed!"),
    EB_SYS_ERROR("CM10019", "EasyBuy system error."),
    SYSTEM_BUSY("CM10020", "System busy, please try later"),
    ACCT_ERROR("CM10021", "The use acctNo is not correct"),
    COMPANY_NAME_ERROR("CM10022", "The company name is not correct"),
    CM10023("CM10023", "There are currently transactions being processed, please try again later."),
    CM10024("CM10024", "There are illegitimate request parameters."),
    NO_SIGN("CM10025", "the enterprise is not sign"),
    SIGN_ERROR("CM10026", "the sign is error")
    ;


    private String code;
    private String msg;
    CmErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
